package main

import (
	"github.com/gin-gonic/gin"
	"net/http"
)

func webHandle(c *gin.Context) {
	c.HTML(http.StatusOK, "login.html", gin.H{
		"title": "这是login页面",
	})
}

func main() {
	r := gin.Default()
	r.LoadHTMLGlob("templates/**")
	r.GET("/web", webHandle)

	r.Run()
}
